<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
    <link href="css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link href="css/signin.css" th:href="@{/css/signin.css}" rel="stylesheet">
</head>
<body class="text-center">
<form class="form-signin" th:action="@{/doRegister}" method="post">
    <img class="mb-4" src="img/bootstrap-solid.svg" th:src="@{/img/bootstrap-solid.svg}" width="72" height="72">
    <h1 class="h3 mb-3 font-weight-normal">用户注册</h1>
    <input type="text" name="name" class="form-control" placeholder="用户名" value="">
    <span style="color:red;" th:text="${msg==''?'':msg}"></span><br>
    <label class="sr-only">密码</label>
    <input type="password" name="password" class="form-control" placeholder="密码" required>
    <label class="sr-only">性别:</label>
    <input type="text" name="sex" class="form-control" placeholder="性别" value=""/><br>
    <label class="sr-only">年龄:</label>
    <input type="text" name="age" class="form-control"  placeholder="年龄"value=""/><br>
    <label class="sr-only">电话:</label>
    <input type="text" name="phone" class="form-control" placeholder="电话" value=""/><br>
    <label class="sr-only">地址:</label>
    <input type="text" name="address" class="form-control" placeholder="地址" value=""/><br>
    <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
    <p class="mt-5 mb-3 text-muted">已有账号？<a th:href="@{/toLogin}">立即登录</a></p>
</form>
</body>
</html>